/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jili.ubert.code.server2client;

import com.baidu.bjf.remoting.protobuf.Codec;
import com.baidu.bjf.remoting.protobuf.ProtobufProxy;
import com.baidu.bjf.remoting.protobuf.annotation.Protobuf;
import java.io.IOException;

/**
 *
 * @author ChengJiLi
 */
public class Price1 {
    @Protobuf
    private String maketCode;//市场daima
    @Protobuf
    private String obj;//交易代码
    @Protobuf
    private String localName;//名称
    @Protobuf
    private float lastPrice;//最新成交价
    @Protobuf
    private int lastQty;//最新成交量

    public static byte[] EnCode(Price1 msg) throws IOException {
        Codec<Price1> Lcode = ProtobufProxy.create(Price1.class);
        return Lcode.encode(msg);
    }

    public static Price1 DeCode(byte[] data) throws IOException {
        Codec<Price1> Lcode = ProtobufProxy.create(Price1.class);
        return Lcode.decode(data);
    }

    public String getMaketCode() {
        return maketCode;
    }

    public void setMaketCode(String maketCode) {
        this.maketCode = maketCode;
    }

    public String getObj() {
        return obj;
    }

    public void setObj(String obj) {
        this.obj = obj;
    }

    public String getLocalName() {
        return localName;
    }

    public void setLocalName(String localName) {
        this.localName = localName;
    }

    public float getLastPrice() {
        return lastPrice;
    }

    public void setLastPrice(float lastPrice) {
        this.lastPrice = lastPrice;
    }

    public int getLastQty() {
        return lastQty;
    }

    public void setLastQty(int lastQty) {
        this.lastQty = lastQty;
    }

}
